﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Home_pers : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string path;
        path = "XML.xml";

        Session.Timeout = 30;
        string cty = Server.MapPath(path);
        string logo = Server.MapPath("logo.xml");
        DataSet dt = new DataSet();
        DataSet lg = new DataSet();
        dt.ReadXml(cty);
       
        dgcty.DataSource = dt;
        dgcty.DataBind();
        //   baner.DataSource = dt;
        //   baner.DataBind();
        
        


        if (Session["username"] == null)
        {
            Response.Redirect("login.aspx");

        }
        else
        {



            lbchao.Text = "Xin chào[" + "\n" + Session["username"] + "\n]";

        }
    }
}
